<template>
  <el-dialog
    :visible.sync="$attrs.visable"
    width="520px"
    :before-close="handleClose"
    append-to-body
    title="编辑电话号码"
    :close-on-click-modal="false"
  >
    <el-form
      :model="form"
      :rules="rules"
      ref="ruleForm"
      label-width="0"
      class="demo-ruleForm"
    >
      <el-form-item label="" prop="phone">
        <el-input v-model="form.phone" placeholder="添加电话号码"></el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="handleClose">取 消</el-button>
      <el-button size="small" type="primary" @click="handleSubmit">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      form: {
        phone: "",
      },
      rules:{
        phone:[{ required: true, message: '请输入素材标题', trigger: 'blur' }],
      },
    };
  },
  methods: {
    handleClose() {
      this.$emit("close"); //关闭弹窗;
    },

    handleSubmit(){},
  },
};
</script>
<style lang="scss" scoped>
.labelbox {
  border: 1px solid rgb(240, 240, 240);
  padding: 8px;
}
.labelitem {
  display: inline-block;
  border: 1px solid #d9d9d9;
  background-color: #f5f5f5;
  padding: 4px 13px;
  line-height: 22px;
}
</style>